package cn.xydpeng.springframework.beans;

import cn.xydpeng.springframework.util.Assert;
import cn.xydpeng.springframework.lang.Nullable;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/13
 * @description:
 */
public class PropertyValue {

    private final String name;

    @Nullable
    private final Object value;

    public PropertyValue(String name, Object value) {
        Assert.notNull(name,"name must not null");
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Object getValue() {
        return value;
    }
}
